package cn.sh.cares.provider.ws.services.impl;

import java.util.HashMap;
import java.util.Map;

import javax.jws.WebService;

import cn.sh.cares.provider.ws.dto.LoginUserDto;
import cn.sh.cares.provider.ws.services.LoginService;

@WebService(serviceName="LoginService", 
		endpointInterface="cn.sh.cares.provider.ws.services.LoginService")
public class LoginServiceImpl implements LoginService {

	static Map<String, LoginUserDto> userMockMap = new HashMap<String, LoginUserDto>();
	static {
		userMockMap.put("Admin", new LoginUserDto("Admin", "123456", "Administrator"));
		userMockMap.put("Guest", new LoginUserDto("Guest", "123456", "Guest User"));
		userMockMap.put("User001", new LoginUserDto("User001", "123456", "Normal User"));
	}
	
	public LoginUserDto getLoginUser(String userID) {
		return userMockMap.get(userID);
	}

}
